/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.proposeproduct.entity.ProposeSpecification
   Module Description   :

   Date Created      : 2009/11/17
   Original Author   : ellen.li
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.proposeproduct.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.yaodian100.core.common.entity.BaseEntity;

/**
 * @author ellen.li
 * 
 */
@Entity
@Table(name = "EC_PROPOSESPECIFICATION_MAIN")
public class ProposeSpecification extends BaseEntity {

	/**
	 * serial version
	 */
	private static final long serialVersionUID = 4638967603089257224L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_proposespecification")
	@SequenceGenerator(name = "seq_ec_proposespecification", sequenceName = "SEQ_EC_PROPOSESPECIFICATION")
	@Column(name = "PRPS_SPEC_ID")
	private Long id;

	@Column(name = "PROPOSE_PRODUCT_ID", length = 8)
	private String proposeProductId;

	@Column(name = "PRPS_SPEC_NAME", length = 500)
	private String name;

	@Column(name = "SPEC_CODE", length = 50)
	private String specCode;

	@Column(name = "BAR_CODE", length = 40)
	private String barCode;

	@Column(name = "AVAILABLE_INVENTORY")
	private int availableInventory;

	@Column(name = "REVERSE_INVENTORY")
	private int reverseInventory;

	@Column(name = "MAX_COUNT_PER_ORDER")
	private int maxCountPerOrder;

	@Column(name = "MIN_COUNT_PER_ORDER")
	private int minCountPerOrder;

	@Column(name = "SOLD_INVENTORY")
	private int soldInventory;

	@Column(name = "SAFE_INVENTORY")
	private int safeInventory;

	/**
	 * 规格状态
	 */
	@Column(name = "SPEC_STATUS", length = 2)
	private String specStatus;

	/**
	 * 主規格名
	 */
	@Column(name = "PRPS_MAIN_SPEC_NAME", length = 20)
	private String prpsMainSpecName;

	/**
	 * 主規格示意圖
	 */
	@Column(name = "PROPOSE_PRODUCT_ICON_IMG", length = 1000)
	private String proposeProductIconPic;

	/**
	 * 規格細節圖
	 */
	@Column(name = "PROPOSE_PRODUCT_MAIN_SPEC_IMG", length = 1000)
	private String proposeProductMainSpecPic;

	/**
	 * 主規格方形圖
	 */
	@Column(name = "PROPOSE_PRODUCT_MAIN_IMG", length = 200)
	private String proposeProductMainImg;

	/**
	 * 主規格長形圖
	 */
	@Column(name = "PROPOSE_PRODUCT_RMAIN_IMG", length = 200)
	private String proposeProductRMainImg;

	/**
	 * 是否设为封面
	 */
	@Column(name = "IS_COVER", nullable = false, length = 1)
	private String isCover = "N";

	public int getAvailableInventory() {
		return availableInventory;
	}

	public String getBarCode() {
		return barCode;
	}

	public Long getId() {
		return id;
	}

	public int getMaxCountPerOrder() {
		return maxCountPerOrder;
	}

	public int getMinCountPerOrder() {
		return minCountPerOrder;
	}

	public String getName() {
		return name;
	}

	public String getProposeProductId() {
		return proposeProductId;
	}

	public int getReverseInventory() {
		return reverseInventory;
	}

	public int getSafeInventory() {
		return safeInventory;
	}

	public int getSoldInventory() {
		return soldInventory;
	}

	public String getSpecCode() {
		return specCode;
	}

	public String getSpecStatus() {
		return specStatus;
	}

	public void setAvailableInventory(int availableInventory) {
		this.availableInventory = availableInventory;
	}

	public void setBarCode(String barCode) {
		this.barCode = barCode;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setMaxCountPerOrder(int maxCountPerOrder) {
		this.maxCountPerOrder = maxCountPerOrder;
	}

	public void setMinCountPerOrder(int minCountPerOrder) {
		this.minCountPerOrder = minCountPerOrder;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setProposeProductId(String proposeProductId) {
		this.proposeProductId = proposeProductId;
	}

	public void setReverseInventory(int reverseInventory) {
		this.reverseInventory = reverseInventory;
	}

	public void setSafeInventory(int safeInventory) {
		this.safeInventory = safeInventory;
	}

	public void setSoldInventory(int soldInventory) {
		this.soldInventory = soldInventory;
	}

	public void setSpecCode(String specCode) {
		this.specCode = specCode;
	}

	public void setSpecStatus(String specStatus) {
		this.specStatus = specStatus;
	}

	/**
	 * @return the prpsMainSpecName
	 */
	public String getPrpsMainSpecName() {
		return prpsMainSpecName;
	}

	/**
	 * @param prpsMainSpecName the prpsMainSpecName to set
	 */
	public void setPrpsMainSpecName(String prpsMainSpecName) {
		this.prpsMainSpecName = prpsMainSpecName;
	}

	/**
	 * @return the proposeProductIconPic
	 */
	public String getProposeProductIconPic() {
		return proposeProductIconPic;
	}

	/**
	 * @param proposeProductIconPic the proposeProductIconPic to set
	 */
	public void setProposeProductIconPic(String proposeProductIconPic) {
		this.proposeProductIconPic = proposeProductIconPic;
	}

	/**
	 * @return the proposeProductMainSpecPic
	 */
	public String getProposeProductMainSpecPic() {
		return proposeProductMainSpecPic;
	}

	/**
	 * @param proposeProductMainSpecPic the proposeProductMainSpecPic to set
	 */
	public void setProposeProductMainSpecPic(String proposeProductMainSpecPic) {
		this.proposeProductMainSpecPic = proposeProductMainSpecPic;
	}

	/**
	 * @return the proposeProductMainImg
	 */
	public String getProposeProductMainImg() {
		return proposeProductMainImg;
	}

	/**
	 * @param proposeProductMainImg the proposeProductMainImg to set
	 */
	public void setProposeProductMainImg(String proposeProductMainImg) {
		this.proposeProductMainImg = proposeProductMainImg;
	}

	/**
	 * @return the proposeProductRMainImg
	 */
	public String getProposeProductRMainImg() {
		return proposeProductRMainImg;
	}

	/**
	 * @param proposeProductRMainImg the proposeProductRMainImg to set
	 */
	public void setProposeProductRMainImg(String proposeProductRMainImg) {
		this.proposeProductRMainImg = proposeProductRMainImg;
	}

	/**
	 * @return the isCover
	 */
	public String getIsCover() {
		return isCover;
	}

	/**
	 * @param isCover the isCover to set
	 */
	public void setIsCover(String isCover) {
		this.isCover = isCover;
	}

}
